package com.gitee.ykr.lightweight.rpc.monitor.warm;

import com.google.common.eventbus.Subscribe;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/24
 */
public abstract class AbstractEventHandler {


    public AbstractEventHandler() {
        EventControllerFactory.getAsyncController().register( this );
    }

    @Subscribe
    public void listen(Event event) {
        onEvent( event );
    }

    public abstract void onEvent(Event event);
}
